package com.css.dzj.dzjdzqs.modules.datafromzfjg.controller;

import com.alibaba.fastjson.JSON;
import com.css.dzj.dzjdzqs.common.audit.service.SysAuditService;
import com.css.dzj.dzjdzqs.common.util.HttpClientUtil;
import com.css.dzj.dzjdzqs.common.util.R;
import com.css.dzj.dzjdzqs.modules.datafromzfjg.entity.JgLhjgJcdxEntity;
import com.css.dzj.dzjdzqs.modules.datafromzfjg.mapper.JgLhjgJcdxMapper;
import com.css.dzj.dzjdzqs.modules.datafromzfjg.service.JgLhjgJcdxService;
import com.css.dzj.dzjdzqs.modules.datafromzfjg.vo.JgLhjgJcdxVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@RestController
@RequestMapping("/jglhjgjcdx")
@PropertySource(value = "classpath:base.properties")
public class JgLhjgJcdxController {
   /* @Autowired
    private JgLhjgJcdxService jgLhjgJcdxService;
    @Autowired
    private JgLhjgJcdxMapper jgLhjgJcdxMapper;
    @Value("${ZFJG_URL}")
    private String zfjgUrl;*/
    //public static void main(String[] args){
       /* try {
            String list = HttpClientUtil.doGet("http://127.0.0.1:8084/dzjzfjg/lhjg/jglhjgjcdx/queryAllJcdx");
            List<JgLhjgJcdxVo> results = JSON.parseArray(list, JgLhjgJcdxVo.class);
            for (JgLhjgJcdxVo result : results) {
                JgLhjgJcdxEntity jgLhjgJcdxEntity = new JgLhjgJcdxEntity();
                jgLhjgJcdxEntity.setId(result.getId());
                jgLhjgJcdxEntity.setTaskno(result.getTaskno());
                jgLhjgJcdxEntity.setObjectName(result.getObjectname());
                jgLhjgJcdxEntity.setEnterpriseCreditcode(result.getEnterprisecreditcode());
                jgLhjgJcdxEntity.setSuperviseObjectType(result.getObjectType());
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }*/
       public static void main(String[] args){

       }

}
